
export const routes=[
    {
        path:'/',
        name:'Main',
        redirect:'/home',
        component: ()=> import ('../view/Main.vue'),
        children:[
         {
             path:'home',
             name:'Home',//主页
             component:()=>import ('../view/home.vue'),
            
         },
         {
            path:'type',
            name:'Type',//分类
            component:()=>import ('../view/type.vue')
        },
        {
            path:'sign',
            name:'Sign',//签到
            component:()=>import ('../view/sign.vue')
        },
        {
            path:'shopingCart',
            name:'ShopingCart',//购物车
            component:()=>import ('../view/shopingCart.vue')
        },
        {
            path:'personNal',
            name:'PersonNal',//个人
            meta:{
                isKeep:true
            },
            component:()=>import ('../view/personNal.vue')
        },
        {
            path:'shopingPages',//商品列表
            name:'ShopingPages',
            component:()=>import ('../view/shopingPages.vue')
        },
        {
            path:'orderForm',//订单
            name:'OrderForm',
            component:()=>import ('../view/orderForm.vue')
        },
       
        {
            path:'burse',//我的钱包
            name:'Burse',
            component:()=>import ('../view/burse.vue')
        },
        {
            path:'/login',
            name:'Login',//登錄
            component:()=>import ('../view/login.vue')
        },
        ]

    },
    {
        path:'/commodity',
        name:'Commodity',//商品详情
        component:()=>import ('../view/commodity.vue')
    },
    {
        path:'/footprint',
        name:'Footprint',//我的足迹
        component:()=>import ('../view/footprint.vue')
    },
    {
        path:'/collect',
        name:'Collect',//我的收藏
        component:()=>import ('../view/collect.vue')
    },
    
]
    
